<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>字符串</title>
</head>
<body>
<script>
let st1 = '单引号';
let str2 = "双引号";
let str3 = `返单引号`;
console.log(str3)
//模板字符串
let currentTemp = 19.5;
const message = "the current temperature is " + currentTemp + "\u00b0c";
console.log(message);
//ES6新写法
const message1 = `the current tempersture is ${currentTemp}\u00b0c`;
console.log(message1);

//数字字符串   * / - 都会自动转数字类型   + 号会拼接，需要强转
    const result1 = 3 + '30';
    console.log(result1);
    const result3 = 3 + parseInt('30');
    console.log(result3);
    const result2 = 3 * '30';
    console.log(result2)
</script>
</body>
</html>